package string;

/**
 * @Author Klys
 * @Date 2023/4/29 13:23
 * @Description
 * @Version 1.0
 */
public class Demo04 {

    public static void main(String[] args) throws InterruptedException {
        String s1 = new String("klys");
        String s2 = s1;
        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));

        String s3 = new String("111");
        String s4 = "111";
        String s5 = new String("111");
        System.out.println(s3 == s4);
        System.out.println(s3 == s5);
    }
}
